GoXam for WPF v3
FindResource<T>(FrameworkElement,String) Method
Northwoods.GoXam Namespace > Diagram Class > FindResource Method : FindResource<T>(FrameworkElement,String) Method
the type of the desired resource
a FrameworkElement
the name of the desired resource
This static method looks for a resource of type T.
Syntax
public static T FindResource<T>( 
   FrameworkElement start,
   string name
)

Parameters

start
a FrameworkElement
name
the name of the desired resource

Type Parameters

T
the type of the desired resource

Return Value

the first object of type T found in searching the ResourceDictionary of the start element or in its parent elements, or null if no resource by that name is found, or if it is found but is not of the desired type.
See Also

Reference

Diagram Class
Diagram Members
Overload List